package gao.xaiolei.dao;

import java.util.List;

import gao.xaiolei.enity.TaskConversation;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

@Repository("ITaskConversationDao")
public interface ITaskConversationDao extends JpaRepository<TaskConversation, String> {

	// 根据任务Id来获得任务会话信息
	@Query(value = "from TaskConversation where TC_TASK_ID = :TC_TASK_ID order by TC_CONVERSATION_DATE")
	public List<TaskConversation> queryByTaskId(@Param("TC_TASK_ID") String TC_TASK_ID);
}
